package com.caoji.web;

import com.caoji.client.UserFeign;
import com.caoji.client.feiginClient;
import com.caoji.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description： User: caoji
 * Date: 2020/11/27
 * Time: 19:18
 */
@RestController
@RequestMapping("/fei")
public class FeiController {

    @Autowired
    feiginClient client;

    @GetMapping("{id}")
    public User findall(@PathVariable("id")String id){
        System.out.println("jj");
        return client.findall(id);
    }
}
